package com.qf.petmall.starter.hometopic.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import com.qf.petmall.starter.top_img.entity.Top_img;
import com.qf.petmall.starter.topic_img.entity.Topic_img;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商城页面的商品列表点进去的商品详情页面模块
 * </p>
 *
 * @author author
 * @since 2022-12-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("hometopic")
@ApiModel(value="Hometopic对象", description="商城页面的商品列表点进去的商品详情页面模块")
public class Hometopic implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(exist = false)
    private List<Top_img> top_img;

    private Double originalPrice;

    private Double presentPrice;

    private String name;

    private String shop;

    @ApiModelProperty(value = "用户名")
    private String address;

    @ApiModelProperty(value = "用户名")
    private Integer quantity;

    @ApiModelProperty(value = "用户名")
    private Integer sold;

    private String blurb;

    private boolean collection;

    private String comment;

    @TableField(exist = false)
    private List<Topic_img> topic_img;


}
